<!-- 用户详情 -->
<template>
    <page-header-wrapper @back="() => $router.go(-1)">
        <a-card :bordered="false">
            <a-descriptions title="业务信息">
                <a-descriptions-item label="姓名" >{{member.realName}}</a-descriptions-item>
                <a-descriptions-item label="身份证号" >{{member.idCard}}</a-descriptions-item>
                <a-descriptions-item label="手机号" >{{member.mobile}}</a-descriptions-item>
                <a-descriptions-item label="注册状态" >{{member.registerStatus ? member.registerStatus == '1' ? '已注册' : '未注册' : '-'}}</a-descriptions-item>
                <a-descriptions-item label="注册时间" >{{member.registerTime ?? '-'}}</a-descriptions-item>
            </a-descriptions>

            <a-tabs default-active-key="1">
                <a-tab-pane key="1" tab="结算记录" force-render>
                    <settlementBill :realName="member.realName" :idCard="member.idCard" />
                </a-tab-pane>
                <a-tab-pane key="2" tab="合同信息" force-render>
                    <contractBill :realName="member.realName" :idCard="member.idCard" />
                </a-tab-pane>
            </a-tabs>
        </a-card>
    </page-header-wrapper>
</template>

<script>
import settlementBill from './components/settlementBill';
import contractBill from './components/contractBill';
export default {
    components: {
        settlementBill,
        contractBill,
    },
    data () {
        return {
            member: {
                realName: '',
            },
        };
    },
    created(){
        this.member = JSON.parse(this.$route.query.member)
    },
    methods: {}
}

</script>
<style scoped>

</style>